Version

WeakList<T> Class Members

The following tables list the members exposed by WeakList<T>.

Public Constructors
 NameDescription
Public ConstructorWeakList<T> Constructor  
Public Properties
 NameDescription
Public PropertyCountReturns the number of items in the list.  
Public PropertyItemGets or sets the item at the specified location.  
Public PropertySyncRootReturns the object with which to syncrhonize.  
Public Methods
 NameDescription
Public MethodAddAdds the specified item.  
Public MethodAddRangeAdds specified items to the list.  
Public MethodClearClears the list.  
Public MethodCompactRemoves entries from the list that are no longer alive. Note that entries can get garbase collected during the process of compacting and therefore it's not guarrenteed that all the items will remain alive after this method returns.  
Public MethodContainsReturns true if the specified item is contained within this list.  
Public MethodCopyToCopies items from the list to the specified array starting at index location in the specified array.  
Public MethodGetEnumeratorReturns an enumerator for iterating the live items.  
Public MethodIndexOfReturns the index of the specified item. If the item doesn't exist then returns -1.  
Public MethodInsertInserts the specified item at the specified location in the list.  
Public MethodRemoveRemoves the first occurrence of the specified item from the list. If the item doesn't exist in the list then this method does nothing.  
Public MethodRemoveAtRemoves item at specified index.  
Public MethodRemoveRangeRemoves a contiguous block of items from the collection.  
See Also